package com.meida.module.bus.client.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.meida.common.mybatis.base.entity.AbstractEntity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.meida.common.mybatis.annotation.TableAlias;

import java.util.List;

/**
 *
 *
 * @author flyme
 * @date 2020-10-21
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("bus_material_srm")
@TableAlias("bms")
@ApiModel(value="BusMaterialSrm对象", description="")
public class BusMaterialSrm extends AbstractEntity {

private static final long serialVersionUID=1L;

    @TableId(value = "busMaterialSrmId", type = IdType.AUTO)
    private Long busMaterialSrmId;

    @ApiModelProperty(value = "材料计划关联主键")
    private Long materialPlanId;

    @ApiModelProperty(value = "分包计划关联主键")
    private Long materialPackageId;

    @ApiModelProperty(value = "PMS材料申请计划ID")
    private Long purchaseId;

    @ApiModelProperty(value = "PMS材料申请计划明细ID")
    private Long purchaseDetailsId;

    @ApiModelProperty(value = "项目ID")
    private Long projectId;

    @ApiModelProperty(value = "项目编码")
    private String projectCode;

    @ApiModelProperty(value = "项目名称")
    private String projectName;

    @ApiModelProperty(value = "专业代码")
    private String majorCode;

    @ApiModelProperty(value = "专业名称")
    private String majorName;

    @ApiModelProperty(value = "工程包代码")
    private String packageCode;

    @ApiModelProperty(value = "工程包名称")
    private String packageName;

    @ApiModelProperty(value = "需求计划ID")
    private Long planId;

    @ApiModelProperty(value = "需求计划编码")
    private String planNo;

    @ApiModelProperty(value = "需求计划明细ID")
    private Long plandtlId;

    @ApiModelProperty(value = "需求计划行号")
    private Integer planRowno;

    @ApiModelProperty(value = "采购申请ID")
    private Long purchasingRequisitionId;

    @ApiModelProperty(value = "采购申请编码")
    private String purchasingRequisitionNo;

    @ApiModelProperty(value = "采购申请明细ID")
    private Long purchasingRequisitiondtlId;

    @ApiModelProperty(value = "采购申请行号")
    private Integer purchasingRequisitionRowno;

    @ApiModelProperty("预留号")
    private String reserveNo;

    @ApiModelProperty("预留行号")
    private String reserveRow;

    @ApiModelProperty("删除标识")
    private int deleteFlag;

    @ApiModelProperty("免费标识")
    private int isFree;

    @ApiModelProperty("关闭")
    private int closeFlag;

    @ApiModelProperty("合同采购订单关联表")
    @TableField(exist = false)
    List<BusMaterialSrmSub> busMaterialSrmSubList;

}
